<script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/js/categoria/crear.js"></script>

<div class="page-header"><!-- page title -->
    <h5><i class="font-group"></i>Bootstrap elements</h5>
    <ul class="icons">
        <li><a href="#" title="My tasks"><i class="font-tasks"></i><span>Tasks</span></a></li>
        <li>/</li>
        <li><a href="#" title="My tasks"><i class="font-refresh"></i><span>Reload data</span></a></li>
        <li>/</li>
        <li><a href="#" title="My tasks" class="dropdown-toggle" data-toggle="dropdown"><i class="font-cog"></i><span>Settings <b class="caret"></b></span></a>
            <ul class="dropdown-menu pull-right">
                <li><a href="#"><i class="font-heart"></i>Favorite it</a></li>
                <li><a href="#"><i class="font-refresh"></i>Reload page</a></li>
                <li><a href="#"><i class="font-link"></i>Attach something</a></li>
            </ul>
        </li>
    </ul>
</div>

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'categoria-form',
    'enableClientValidation'=>false,
    'htmlOptions' => array(
        'class' => 'form-horizontal'
    )
)); ?>
    <fieldset>

        <!-- General form elements -->
        <div class="well row-fluid block">
            <div class="navbar">
                <div class="navbar-inner">
                    <h5>Crear Categor&iacute;a</h5>
                </div>
            </div>

            <div class="control-group">
                <?php echo $form->labelEx($model,'categoria_nombre', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textField($model,'categoria_nombre',array('size'=>60,'maxlength'=>255)); ?>
                    <?php echo $form->error($model,'categoria_nombre'); ?>
                </div>
            </div>

            <div class="control-group">
                <?php echo $form->labelEx($model,'categoria_descripcion', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textField($model,'categoria_descripcion',array('size'=>60,'maxlength'=>255)); ?>
                    <?php echo $form->error($model,'categoria_descripcion'); ?>
                </div>
            </div>

            <div class="control-group">
                <?php echo $form->labelEx($model,'categoria_padre', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textField($model,'categoria_padre',array('size'=>60,'maxlength'=>255)); ?>
                    <?php echo $form->error($model,'categoria_padre'); ?>
                </div>
            </div>

            <div class="form-actions align-right"><?php echo CHtml::submitButton('Crear Categoría', array('class' => 'btn btn-primary')); ?></div>
        </div>
    </fieldset>
<?php $this->endWidget(); ?>